package com.andox.fn.inf.rpc.rest.config;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**   
 * @ClassName:   AbstractConfig   
 * @Description: TODO  
 * @author:      Andox
 * @date:        2019年8月1日 下午12:09:54   
 *     
 */
public abstract class AbstractConfig implements Serializable{
	private static final long serialVersionUID = -1982485567206925248L;

	public final static String METHOD_PROPERTY_PREFIX = "method.";
	public final static String DEFAULT_PROPERTY_PREFIX = "default.";
	
	private String appName;

	private Map<String, Object> properties = new HashMap<>();
	
	public Object getProperty(String key) {
		return properties.get(key);
	}
	
	public void addProperty(String key, Object value) {
		this.properties.put(key, value);
	}
	
	public static void appendConfig(AbstractConfig source, AbstractConfig dest) {
		source.getClass().getMethods();
	}
	
	/**
	 * @return the appName
	 */
	public String getAppName() {
		return appName;
	}

	/**
	 * @param appName the appName to set
	 */
	public void setAppName(String appName) {
		this.appName = appName;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	public void checkSelf() {
		
	}
}
